﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace HenuAlbum.ResponseModels
{
    public class ResponseBase
    {
        public ErrorCode Code { get; set; }

        public string Msg { get; set; }

        public object Data { get; set; } = null;

        public ResponseBase(ErrorCode code, string message)
        {
            Code = code;
            Msg = message;
        }

        public ResponseBase(ErrorCode code, string message, object data)
        {
            Code = code;
            Msg = message;
            Data = data;
        }
    }
}
